package com.yz.group1.group_1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.group1.group_1.entity.DoctorVisit;
import com.yz.group1.group_1.mapper.DoctorVisitMapper;
import com.yz.group1.group_1.service.DoctorVisitService;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class DoctorVisitServiceImpl
        extends ServiceImpl<DoctorVisitMapper, DoctorVisit>
        implements DoctorVisitService {

    @Override
    public List<DoctorVisit> listAllDoctorVisits() {
        return baseMapper.selectList(null);
    }


    @Override
    public List<DoctorVisit> todayQueue(Long doctorId) {
        return baseMapper.todayQueue(doctorId);
    }
}